const {Book} = require('../../models/Books');

module.exports = async (req, res) => {
    try{
        const book = await Book.findOne({ISBN: req.query.ISBN});
        res.send({errorCode:"0",msg:"success",data:{bookInfo: book}});
    }catch(e){
        res.status(500).send({errCode:"1",msg:"服务器内部错误"})
    }
}